<?php if ($model !== null):?>
<table border="1">

	<tr>
		<th width="80px">
		      id		</th>
 		<th width="80px">
		      part_code		</th>
 		<th width="80px">
		      name		</th>
 		<th width="80px">
		      lead_time_days		</th>
 		<th width="80px">
		      unit_code		</th>
 		<th width="80px">
		      description		</th>
 		<th width="80px">
		      id_categories		</th>
 		<th width="80px">
		      id_subcategories		</th>
 		<th width="80px">
		      id_section		</th>
 		<th width="80px">
		      id_process		</th>
 		<th width="80px">
		      id_status		</th>
 		<th width="80px">
		      item_id		</th>
 		<th width="80px">
		      status_part		</th>
 		<th width="80px">
		      supplier_code		</th>
 		<th width="80px">
		      part_maker		</th>
 		<th width="80px">
		      min_order_qty		</th>
 		<th width="80px">
		      re_order_level		</th>
 		<th width="80px">
		      unit_of_measure		</th>
 		<th width="80px">
		      section_name		</th>
 		<th width="80px">
		      price		</th>
 		<th width="80px">
		      currency		</th>
 		<th width="80px">
		      current_stock		</th>
 		<th width="80px">
		      status_po		</th>
 		<th width="80px">
		      part		</th>
 		<th width="80px">
		      item_code		</th>
 		<th width="80px">
		      actual_qty		</th>
 		<th width="80px">
		      status_stock		</th>
 		<th width="80px">
		      max_stock		</th>
 		<th width="80px">
		      min_stock		</th>
 		<th width="80px">
		      stock_taking		</th>
 		<th width="80px">
		      mrp		</th>
 		<th width="80px">
		      jumlah		</th>
 		<th width="80px">
		      currency_code		</th>
 		<th width="80px">
		      inspection_received		</th>
 		<th width="80px">
		      inspection_rejected		</th>
 		<th width="80px">
		      is_new_item		</th>
 		<th width="80px">
		      link_part_code		</th>
 		<th width="80px">
		      part_kind		</th>
 	</tr>
	<?php foreach($model as $row): ?>
	<tr>
        		<td>
			<?php echo $row->id; ?>
		</td>
       		<td>
			<?php echo $row->part_code; ?>
		</td>
       		<td>
			<?php echo $row->name; ?>
		</td>
       		<td>
			<?php echo $row->lead_time_days; ?>
		</td>
       		<td>
			<?php echo $row->unit_code; ?>
		</td>
       		<td>
			<?php echo $row->description; ?>
		</td>
       		<td>
			<?php echo $row->id_categories; ?>
		</td>
       		<td>
			<?php echo $row->id_subcategories; ?>
		</td>
       		<td>
			<?php echo $row->id_section; ?>
		</td>
       		<td>
			<?php echo $row->id_process; ?>
		</td>
       		<td>
			<?php echo $row->id_status; ?>
		</td>
       		<td>
			<?php echo $row->item_id; ?>
		</td>
       		<td>
			<?php echo $row->status_part; ?>
		</td>
       		<td>
			<?php echo $row->supplier_code; ?>
		</td>
       		<td>
			<?php echo $row->part_maker; ?>
		</td>
       		<td>
			<?php echo $row->min_order_qty; ?>
		</td>
       		<td>
			<?php echo $row->re_order_level; ?>
		</td>
       		<td>
			<?php echo $row->unit_of_measure; ?>
		</td>
       		<td>
			<?php echo $row->section_name; ?>
		</td>
       		<td>
			<?php echo $row->price; ?>
		</td>
       		<td>
			<?php echo $row->currency; ?>
		</td>
       		<td>
			<?php echo $row->current_stock; ?>
		</td>
       		<td>
			<?php echo $row->status_po; ?>
		</td>
       		<td>
			<?php echo $row->part; ?>
		</td>
       		<td>
			<?php echo $row->item_code; ?>
		</td>
       		<td>
			<?php echo $row->actual_qty; ?>
		</td>
       		<td>
			<?php echo $row->status_stock; ?>
		</td>
       		<td>
			<?php echo $row->max_stock; ?>
		</td>
       		<td>
			<?php echo $row->min_stock; ?>
		</td>
       		<td>
			<?php echo $row->stock_taking; ?>
		</td>
       		<td>
			<?php echo $row->mrp; ?>
		</td>
       		<td>
			<?php echo $row->jumlah; ?>
		</td>
       		<td>
			<?php echo $row->currency_code; ?>
		</td>
       		<td>
			<?php echo $row->inspection_received; ?>
		</td>
       		<td>
			<?php echo $row->inspection_rejected; ?>
		</td>
       		<td>
			<?php echo $row->is_new_item; ?>
		</td>
       		<td>
			<?php echo $row->link_part_code; ?>
		</td>
       		<td>
			<?php echo $row->part_kind; ?>
		</td>
       	</tr>
     <?php endforeach; ?>
</table>
<?php endif; ?>
